﻿// Copyright © 2010 Silvestru Iapascurta.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see license.txt for details.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using System.ComponentModel;

namespace Karoro
{
    public enum SubAction { Add, Update }

    partial class KaroroForm
    {
        public event EventHandler<TreeViewEventArgs> FeedUpdated;

        public List<Style> Themes
        {
            get { return themes; }
            private set { themes = value; }
        }

        private int dbDeletes = 0;
        private List<Style> themes = new List<Style>();
        private DirectoryInfo stylesPath = new DirectoryInfo(System.IO.Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "styles"));
        private DirectoryInfo feedsPath = new DirectoryInfo(System.IO.Path.Combine(Path.GetDirectoryName(Application.LocalUserAppDataPath), "feeds"));
        private Control focusedControl = null;
        private List<FileInfo> tempFiles = new List<FileInfo>();
        private Queue<FeedWorkerArgs> feed_queue = new Queue<FeedWorkerArgs>();
        private int available_workers = Properties.Settings.Default.maxConnections;
        private List<BackgroundWorker> feed_workers = new List<BackgroundWorker>();
        private List<string> uniques = new List<string>();
    }
}
